package com.consume;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.client.RestTemplate;

/**
 * Created by Chan on 2017/5/23.
 */
public class Application {
    private static final Logger log = LoggerFactory.getLogger(Application.class);

    public static void main(String args[]) {
        RestTemplate restTemplate = new RestTemplate();
        Geention geention = restTemplate.getForObject("http://192.168.0.104:8080/greeting?name=wowowo", Geention.class);
        log.info(geention.toString());
    }
}
